# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: demo01.py
@time: 2021/02/02
"""


class Bad(Exception):
    ...


def func():
    ...
    raise Bad()


def test():
    ...
    try:
        func()
    except Exception:
        # raise
        # 不写任何参数，默认抛出当前发生异常的实例对象
        raise
    finally:
        print('3333')
    print('2222')

    # try:
    #     print('xxx')
    # except:
    #     print('11')


if __name__ == '__main__':
    pass
    test()
